package com.tsingtao.springboot2.service;

import com.tsingtao.springboot2.dto.Company;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;


public interface CompanyService {

    List<Company> selectAll();

    List<Company> selectAllByProxy();

    List<Company> selectByCode(String code);

    List<Company> selectByChoose(Company company);

    List<Company> selectByCodeOrName(String code, String name);

    Company insert(Company company);

    List<Company> batchInsertByForeach(List<Company> list);

    List<Company> batchInsert(List<Company> companies);

    Company update(Company company);

    int deleteById(Long id);

    int batchDeleteByIds(List<Company> list);
}
